<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<jsp:include page="../include/header.jsp" />
<jsp:include page="../include/navigation.jsp" />

<!-- <h2>Find friends</h2> -->

<div>
	<form action="${baseUrl}/friends/user/find" method="get">
		<input class="cleanInput focusOnPageLoad" type="text" name="search" size="40" value="${search}" />
		<input type="submit" class="submit" value="find" />
	</form>
</div>

<div id="friendResults" class="result">
	<c:choose>
		<c:when test="${empty users && !empty search}">
			<h3>No results found for &quot;${search}&quot;...</h3>
		</c:when>
		<c:when test="${!empty users && !empty search}">
			<h3>Searchresults for &quot;${search}&quot;:</h3>
			<jsp:include page="inc_userresults.jsp" />
		</c:when>
		<c:otherwise></c:otherwise>
	</c:choose>
</div>

<jsp:include page="../include/footer.jsp" />